package cn.zaier.javafx.view;

import cn.hutool.extra.spring.SpringUtil;
import cn.zaier.javafx.controlle.InitSceneViewControlle;
import de.felixroske.jfxsupport.AbstractFxmlView;
import de.felixroske.jfxsupport.FXMLView;
import javafx.scene.Parent;
import org.springframework.beans.factory.InitializingBean;

import java.util.function.Consumer;

@FXMLView("/InitScene.fxml")
public class InitSceneView extends AbstractFxmlView  {

    @Override
    public Parent getView() {
        Parent view = super.getView();
        // 加载配置
        SpringUtil.getBean(InitSceneViewControlle.class).initVal(InitSceneViewControlle.class,"setText");
        return view;
    }
}
